package com.eastcom.providor.dao.impl;

import java.util.List;

import com.eastcom.bm.atom.Atom_Type;
import com.eastcom.providor.dao.BaseDao;
import com.eastcom.providor.dao.IKpiTypeDao;

public class KpiTypeDao extends BaseDao implements IKpiTypeDao {

	public List<Atom_Type> selectTypeByParentId(String parentId) throws Exception {
		try{
			return this.getObjects("from Atom_Type where parentId='"+parentId+"'", null);
		}
		catch(Exception e){
			throw e;
		}
	}

	public List<Atom_Type> selectTypeNoParent() throws Exception{
        try{
        	return this.getObjects("from Atom_Type where parentId=null", null);
		}
		catch(Exception e){
			throw e;
		}
	}

}
